package org.appfuse.tutorial.service;

import java.util.List;

import javax.jws.WebService;

import org.appfuse.service.impl.GenericManagerImpl;
import org.appfuse.tutorial.dao.PersonDao;
import org.appfuse.tutorial.model.Person;

@WebService(serviceName = "PersonService", endpointInterface = "org.appfuse.tutorial.service.PersonManager")
public class PersonManagerImpl extends GenericManagerImpl<Person, Long> implements PersonManager {
	
	private PersonDao personDao; 
	
	public PersonManagerImpl(PersonDao personDao) {
		super(personDao);
		this.personDao = personDao; 
		
	}

	public List<Person> findByLastName(String lastName) {
		// TODO Auto-generated method stub
		return personDao.findByLastName(lastName);
	}

}
